
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>1.5.3 用户 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../1.5.4 连接/" />
    
    
    <link rel="prev" href="../1.5.2 客户端核心SDK功能/" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../1.1 产品介绍/">
            
                <a href="../../1.1 产品介绍/">
            
                    
                    1.1 产品介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../../1.1 产品介绍/1.1.1 商用社交版/">
            
                <a href="../../1.1 产品介绍/1.1.1 商用社交版/">
            
                    
                    1.1.1 商用社交版
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../../1.1 产品介绍/1.1.2 商用客服版/">
            
                <a href="../../1.1 产品介绍/1.1.2 商用客服版/">
            
                    
                    1.1.2 商用客服版
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../../1.1 产品介绍/1.1.3 社交版开发指南/">
            
                <a href="../../1.1 产品介绍/1.1.3 社交版开发指南/">
            
                    
                    1.1.3 社交版开发指南
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../../1.2 试用与部署/">
            
                <a href="../../1.2 试用与部署/">
            
                    
                    1.2 试用与部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../../1.2 试用与部署/1.2.1 社区版编译部署/">
            
                <a href="../../1.2 试用与部署/1.2.1 社区版编译部署/">
            
                    
                    1.2.1 社区版编译部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../../1.2 试用与部署/1.2.2 社区版镜像部署/">
            
                <a href="../../1.2 试用与部署/1.2.2 社区版镜像部署/">
            
                    
                    1.2.2 社区版镜像部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../../1.2 试用与部署/1.2.3 专业版镜像部署/">
            
                <a href="../../1.2 试用与部署/1.2.3 专业版镜像部署/">
            
                    
                    1.2.3 专业版镜像部署
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../../1.3 编译工程/">
            
                <a href="../../1.3 编译工程/">
            
                    
                    1.3 编译工程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../../1.3 编译工程/1.3.1 编译社区版后端源码/">
            
                <a href="../../1.3 编译工程/1.3.1 编译社区版后端源码/">
            
                    
                    1.3.1 编译社区版后端源码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../1.3 编译工程/1.3.2 编译Web客户端源码/">
            
                <a href="../../1.3 编译工程/1.3.2 编译Web客户端源码/">
            
                    
                    1.3.2 编译Web客户端源码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../../1.3 编译工程/1.3.3 编译移动客户端源码/">
            
                <a href="../../1.3 编译工程/1.3.3 编译移动客户端源码/">
            
                    
                    1.3.3 编译移动客户端源码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../../1.3 编译工程/1.3.4 编译微信小程序源码/">
            
                <a href="../../1.3 编译工程/1.3.4 编译微信小程序源码/">
            
                    
                    1.3.4 编译微信小程序源码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../../1.3 编译工程/1.3.5 编译E聊SDK源码/">
            
                <a href="../../1.3 编译工程/1.3.5 编译E聊SDK源码/">
            
                    
                    1.3.5 编译E聊SDK源码
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../../1.4 系统架构/">
            
                <a href="../../1.4 系统架构/">
            
                    
                    1.4 系统架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../">
            
                <a href="../">
            
                    
                    1.5 基础知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../1.5.1 软件特性/">
            
                <a href="../1.5.1 软件特性/">
            
                    
                    1.5.1 软件特性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../1.5.2 客户端核心SDK功能/">
            
                <a href="../1.5.2 客户端核心SDK功能/">
            
                    
                    1.5.2 客户端核心SDK功能
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.6.3" data-path="./">
            
                <a href="./">
            
                    
                    1.5.3 用户
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../1.5.4 连接/">
            
                <a href="../1.5.4 连接/">
            
                    
                    1.5.4 连接
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../1.5.5 会话/">
            
                <a href="../1.5.5 会话/">
            
                    
                    1.5.5 会话
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../1.5.6 消息/">
            
                <a href="../1.5.6 消息/">
            
                    
                    1.5.6 消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../1.5.7 消息载体/">
            
                <a href="../1.5.7 消息载体/">
            
                    
                    1.5.7 消息载体
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../1.5.8 文件上传功能/">
            
                <a href="../1.5.8 文件上传功能/">
            
                    
                    1.5.8 文件上传功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../1.5.9 离线消息/">
            
                <a href="../1.5.9 离线消息/">
            
                    
                    1.5.9 离线消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="../1.5.10 群组/">
            
                <a href="../1.5.10 群组/">
            
                    
                    1.5.10 群组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.11" data-path="../1.5.11 自定义消息/">
            
                <a href="../1.5.11 自定义消息/">
            
                    
                    1.5.11 自定义消息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../../1.6 服务端知识/">
            
                <a href="../../1.6 服务端知识/">
            
                    
                    1.6 服务端知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../../1.6 服务端知识/1.6.1 服务器端口说明/">
            
                <a href="../../1.6 服务端知识/1.6.1 服务器端口说明/">
            
                    
                    1.6.1 服务器端口说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../../1.6 服务端知识/1.6.2 数据库配置/">
            
                <a href="../../1.6 服务端知识/1.6.2 数据库配置/">
            
                    
                    1.6.2 数据库配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../../1.6 服务端知识/1.6.3 机器内存的选择/">
            
                <a href="../../1.6 服务端知识/1.6.3 机器内存的选择/">
            
                    
                    1.6.3 机器内存的选择
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../../1.6 服务端知识/1.6.4 性能测试/">
            
                <a href="../../1.6 服务端知识/1.6.4 性能测试/">
            
                    
                    1.6.4 性能测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../../1.6 服务端知识/1.6.5 服务器配置/">
            
                <a href="../../1.6 服务端知识/1.6.5 服务器配置/">
            
                    
                    1.6.5 服务器配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../../1.6 服务端知识/1.6.6 Server API/">
            
                <a href="../../1.6 服务端知识/1.6.6 Server API/">
            
                    
                    1.6.6 Server API
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../../1.7 源码导读/">
            
                <a href="../../1.7 源码导读/">
            
                    
                    1.7 源码导读
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../../1.7 源码导读/1.7.1 客户端核心SDK/">
            
                <a href="../../1.7 源码导读/1.7.1 客户端核心SDK/">
            
                    
                    1.7.1 客户端核心SDK
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../../1.7 源码导读/1.7.2 社区版服务端/">
            
                <a href="../../1.7 源码导读/1.7.2 社区版服务端/">
            
                    
                    1.7.2 社区版服务端
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../../1.7 源码导读/1.7.3 使用Web版SDK/">
            
                <a href="../../1.7 源码导读/1.7.3 使用Web版SDK/">
            
                    
                    1.7.3 使用Web版SDK
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../../1.10 code错误码/">
            
                <a href="../../1.10 code错误码/">
            
                    
                    1.10 code错误码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../../1.11 技术支持/">
            
                <a href="../../1.11 技术支持/">
            
                    
                    1.11 技术支持
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../../1.12 管理后台/">
            
                <a href="../../1.12 管理后台/">
            
                    
                    1.12 管理后台
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../../1.13 常见问题/">
            
                <a href="../../1.13 常见问题/">
            
                    
                    1.13 常见问题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >1.5.3 用户</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="153-&#x7528;&#x6237;">1.5.3 &#x7528;&#x6237;</h1>
<h3 id="1&#x57FA;&#x672C;&#x5C5E;&#x6027;">1.&#x57FA;&#x672C;&#x5C5E;&#x6027;:</h3>
<pre><code class="lang-javascript">{
  auid: <span class="hljs-string">&apos;&#x7528;&#x6237;&#x8D26;&#x53F7;&apos;</span>; <span class="hljs-comment">// &#x7528;&#x6237;&#x8D26;&#x53F7;, &#x540C;&#x4E00;&#x4E2A;sdkKey&#x4E0B;&#x4E0D;&#x5141;&#x8BB8;&#x91CD;&#x590D;&#x3002;&#x53EF;&#x4EE5;&#x7528;&#x8BE5;&#x5B57;&#x6BB5;&#x4E0E;&#x7B2C;&#x4E09;&#x65B9;&#x4E1A;&#x52A1;&#x7CFB;&#x7EDF;&#x5BF9;&#x63A5; auid: account unique id</span>
  name: <span class="hljs-string">&apos;&#x7528;&#x6237;&#x6635;&#x79F0;&apos;</span>; <span class="hljs-comment">// &#x7528;&#x6237;&#x6635;&#x79F0;, &#x5141;&#x8BB8;&#x91CD;&#x590D;</span>
  token: <span class="hljs-string">&apos;&#x7528;&#x6237;&#x767B;&#x5F55;token&apos;</span>; <span class="hljs-comment">// &#x7528;&#x6237;&#x767B;&#x5F55;token, &#x53EF;&#x7406;&#x89E3;&#x6210;&#x5BC6;&#x7801;&#x3002;</span>
  ex: <span class="hljs-string">&apos;&#x7528;&#x6237;&#x7684;&#x62D3;&#x5C55;&#x5B57;&#x6BB5;&apos;</span>; <span class="hljs-comment">// &#x53EF;&#x4EE5;&#x6839;&#x636E;&#x4E1A;&#x52A1;&#x7CFB;&#x7EDF;&#x62D3;&#x5C55;</span>
}
</code></pre>
<h3 id="2&#x8FDE;&#x63A5;&#x4E0E;&#x767B;&#x5F55;">2.&#x8FDE;&#x63A5;&#x4E0E;&#x767B;&#x5F55;:</h3>
<p>sdk&#x5BA2;&#x6237;&#x7AEF;&#x5728;&#x521D;&#x59CB;&#x5316;&#x65F6;&#xFF0C;&#x4F1A;&#x5148;&#x901A;&#x8FC7;socket.io &#x8FDE;&#x63A5;&#xFF0C;&#x8FDE;&#x63A5;&#x6210;&#x529F;&#x540E;&#xFF0C;&#x518D;&#x8C03;&#x7528;&#x767B;&#x5F55;API&#xFF0C;&#x8FDE;&#x63A5;&#x4E0E;&#x767B;&#x5F55;&#x662F;&#x4E24;&#x4E2A;&#x8FC7;&#x7A0B;&#xFF0C;&#x7528;&#x6237;&#x767B;&#x5F55;&#x5B8C;&#x6BD5;&#x540E;&#xFF0C;&#x540E;&#x7AEF;&#x7CFB;&#x7EDF;&#x4F1A;&#x7ED1;&#x5B9A;&#x7528;&#x6237;&#x8D26;&#x53F7;&#x6216;&#x6240;&#x7528;&#x7684;socket.io&#x957F;&#x8FDE;&#x63A5;&#x901A;&#x9053;&#x3002;&#x5BA2;&#x6237;&#x7AEF;&#x5728;&#x7528;&#x6237;&#x767B;&#x5F55;&#x540E;&#x4F1A;&#x4FDD;&#x6301;&#x957F;&#x8FDE;&#x63A5;&#xFF0C;&#x5373;&#x65F6;&#x63A5;&#x53D7;&#x6D88;&#x606F;&#x6216;&#x4E8B;&#x4EF6;&#x3002;</p>
<h3 id="3&#x7528;&#x6237;&#x767B;&#x5F55;">3.&#x7528;&#x6237;&#x767B;&#x5F55;:</h3>
<p>&#x7528;&#x6237;&#x5728;&#x767B;&#x5F55;&#x540E;&#xFF0C;&#x540E;&#x7AEF;&#x7CFB;&#x7EDF;&#x4F1A;&#x8FD4;&#x56DE;&#x4E00;&#x4E2A;&#x52A0;&#x5BC6;&#x8FC7;&#x7684;&#x6570;&#x5B57;&#x7B7E;&#x540D;jwt&#x6765;&#x8BC6;&#x522B;&#x7528;&#x6237;&#x7684;&#x8EAB;&#x4EFD;&#xFF0C;&#x5728;&#x4EE5;&#x540E;&#x7684;API&#x4E2D;&#xFF0C;&#x540E;&#x7AEF;&#x4F1A;&#x5BF9;&#x8FD9;&#x4E2A;jwt &#x505A;&#x6709;&#x6709;&#x6548;&#x6027;&#x68C0;&#x9A8C;&#xFF0C;&#x8BF7;&#x59A5;&#x5584;&#x4FDD;&#x7BA1;&#x7528;&#x6237;&#x7684;jwt&#xFF0C;&#x4E0D;&#x8981;&#x6CC4;&#x9732;&#x3002;</p>
<h3 id="4&#x624B;&#x5DE5;&#x63A7;&#x5236;&#x7528;&#x6237;&#x7684;&#x767B;&#x5F55;&#x65F6;&#x673A;&#x4E13;&#x4E1A;&#x7248;">4.&#x624B;&#x5DE5;&#x63A7;&#x5236;&#x7528;&#x6237;&#x7684;&#x767B;&#x5F55;&#x65F6;&#x673A;(&#x4E13;&#x4E1A;&#x7248;):</h3>
<p>&#x5728;&#x793E;&#x533A;&#x7248;&#x4E2D;&#xFF0C;socket.io &#x4E00;&#x8FDE;&#x63A5;&#x540E;&#x5C31;&#x81EA;&#x52A8;&#x767B;&#x5F55;&#x4E86;&#x3002;&#x5728;&#x4E13;&#x4E1A;&#x7248;&#x4E2D;&#xFF0C;&#x5141;&#x8BB8;&#x81EA;&#x5B9A;&#x4E49;&#x7528;&#x6237;&#x7684;&#x767B;&#x5F55;&#x6388;&#x6743;&#x65B9;&#x6CD5;&#xFF0C;&#x5E76;&#x624B;&#x52A8;&#x89E6;&#x53D1;&#x767B;&#x5F55;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../1.5.2 客户端核心SDK功能/" class="navigation navigation-prev " aria-label="Previous page: 1.5.2 客户端核心SDK功能">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../1.5.4 连接/" class="navigation navigation-next " aria-label="Next page: 1.5.4 连接">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"1.5.3 用户","level":"1.6.3","depth":2,"next":{"title":"1.5.4 连接","level":"1.6.4","depth":2,"path":"1.5 基础知识/1.5.4 连接/README.md","ref":"1.5 基础知识/1.5.4 连接/README.md","articles":[]},"previous":{"title":"1.5.2 客户端核心SDK功能","level":"1.6.2","depth":2,"path":"1.5 基础知识/1.5.2 客户端核心SDK功能/README.md","ref":"1.5 基础知识/1.5.2 客户端核心SDK功能/README.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"1.5 基础知识/1.5.3 用户/README.md","mtime":"2021-08-04T03:46:07.636Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-11-19T07:54:02.646Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

